added some tests and a package.json file