package.json: reorganize
test: add some tests
test: make `npm test` work
test: add makefile with test targets