Fix tests on Windows.