added tests; updated package.json