Changes made to test cases. Added try catch block.