add test in midlewq