added tests for utility method