Fix for tests on Windows