test: more unit tests for util