added unit tests for utils