Fixed test on py3.