Update package.json with dependencies and added test-code.