test for request/response body both as json