Add test with middlewares and multiple routes