Add exception handling test case