Added tests for util.