Testing CheckPending middleware
Merge pull request #10893 from arunagw/test_for_checkpending_middleware

Testing CheckPending middleware