Updated tests, package.json and index.js