update test middlewares