Added additional tests for exceptions classes.