Add a new test for exceptions