Add middleware tests

what is the result of this test with an impersonation ? Here there is none, so we really expect the result to be the same, but with one ?