Added test 6 - alter 1 tests for middleware