[UnitTests] Fixed some failing tests on windows.