additional middleware tests