added test and mocha