tests: add more tests for shared/util.c