Correct error messages in tests

(In accordance with tweaked `json_schema` messages.)

It might make sense down the road to start supplying our own error messages here (or matching on error metadata instead) so that these tests are less fragile.