changed test to be compatible with python2.6