Fixed code formatting.
Added test coverage for the deletion of data.
Replaced success with done and error with fail for callbacks.  Added some tests too.