Testing middleware.