JSON test assertion improved