added tests. fix package.json