Adding tests for helper file

 * Added more mocha tests