Fix unit test test_sess.py