ticket 3: Add test_request_middleware