cleaned up ub_test.c