fix test case to also support Python 2.6