added unit test for utils