added tests for util fns