Don't test exception message, just the exception

Not really useful to test for exact exception messages, and makes
the tests a lot more fragile