added test with mocha