Testing the error messages was a bit too brittle