improve unittest coverage of util module