added (untested and uncompiled) ub_test