Added tests for util.js