Fix a test to allow for the exception to be repr'd.

This makes the tests pass.