Covered middleware with tests.