Fix test failures on windows.