Added unit tests for util.util functions

This was previously addressed in issue #226.