unit tests for Util