Fixed test incompatibility with py26