Added some tests for exceptions