some test of middlewares