Simplify error message and test.