Simplify middleware tests