Added unit tests for util.util funtions