Added test for intercepting requests and responses.