Test the error message instead of a predicate

This test was broken prior to commit 370c4bd but
didn't fail because the test harness didn't test for
the right error.