renamed middleware tests