added package.json and created tests