Testing middlewares.