udpate test to support Python 2.6