Fix a test that could not work on Windows.