This probably needs more tests that just this modified one.  How about a test that validates the parsed attributes of the exception given a JSON error message?