Fix tests by parsing the created JSON reply