Fixed test on python 2.5 (where json isn't available yet)