test the exception message