implements last fix in SessionTest