rewrote helpers tests for mocha