allow for the body of a mocked response to be a function and respond to the data sent