added test case for exception raise