General tests for middleware request interception