See https://github.com/dotnet/efcore/issues/35361#issuecomment-2556914129 upstream. The fix is part of the EF Core 10 release train. The test should verify that #1776 has been fixed by EF Core upstream.