More unit testing of util module