Added mocha test for util.js