add tests for util