Fixed some tests on Windows