util lib and its tests