added test for utility function