Fix running tests on Windows