Fix broken tests on Windows