add test with mocha