Fix test case failures on Windows.