Added specs for util.js