Add some tests for utils.js.