remove try catch in test function