testing try catch block