refactoring
updates helper.js tests