Simplify error message in tests.