add unit tests for utils