Made test compare JSON.