try catch unittest