Fixed tests on windows