Fix tests on py26, py33