Fix failing tests on windows.