added test cases for Exceptions