Allow PATCH method to use JSON Patch.
Decouple tests from data source.
Add tests related to error handling.