Add unit tests to test handling of PUT/POST requests of type 'application/json'