Test the exception message.