Added custom pipeline middleware test for code coverage.
Increased test coverage by adding more cases for custom routes, and caching request body.
Updated tests to account for uncovered test cases.