Adding unit test to Util.
Added unit tests.