Test Case implemented with Exception handling