improve layout of code to jslint standards in helpers unit tests