added test a session can be ended