fixed python2.7 bug in run test