t3_middleware fix tests