Fixing tests on windows