added tests and package.json