Added more tests for helpers.js.