wrote test for lib/util