fixing tests for py2.6 compatability