fix tests in python 2.6