fix session tests