Fixed try catch Exception in test case.