Added additional test for exceptions. Added missing hash code equals methods.