Tests

1. Added a number of tests.
2. Added the ability to provide a JSON.parse reviver to getItem.