upgraded package.json, added tests