Fixed tests on Windows