add coverage and test for helper.js