Added tester for exceptions