fix session test for rack 1.4.4 and rack 1.5

[ci skip]