Add some tests for utils.js.
Merge pull request #195 from deiferni/deif-add-utils-tests

Add some tests for utils.js.