added some tests for exceptions