added tests, package.json