Fixed some tests on windows.