All exceptions tested with test cases