tests for request headers and transforming the request