Added ub_test functionality. Also added a new ubtest test case to confirm. Print statements included