config the package.json
add test with mocha