fix memory leak in object test case
add catch unittest framework