fix tests for python2.6