test the exception