Adding a future test for better checking the accept() method on requests
Taking care of a warning when the request is not made via HTTP
Adding an extra check for an existing processor
Throwing an error if the json_encode fails