fix test failures on windows