fix package.json, add some tests