Fix tests on windows