test: add util tests.