Be a bit more defensive in a test that is failing on Windows.