Added session.set_alive() tests