updated test format for python2.6 compatability