update tests to use mocha, add npm package.json