made tests compatible with py2.6