fix session test case