Fixed ExceptionHandler tests.

The test for adding the exception as an attachment was not working properly.