Added exception test cases