Add tests for handlebars core helper functions

Closes #1842
-add unit tests for core helper functions
-fix up coreHelpers.e
-clean up coreHelpers.pagination
Merge pull request #2788 from jaswilli/issue-1842-tests

Add tests for handlebars core helper functions