fixed test to pass with python 2.6