Fix a test failure (mismatched error strings).