added unit test for setting headers and acceptance tests for complex types
Sets received requests request body