moved package.json and test code into test/

npm warns about missing README and missing repository field
in package.json