t3_midreq: middleware + fix test