Add tests and add dev dependencies to package.json