fix unitest for python2.6