Adding unit tests for helpers.js