Refactor tests to make them work on node and make them pass.
Cleanup package.json