Fix test cases for py2.6.