Updates pacakage json
Adds tests.