Added util.js tests
Part of issue #3