update tests, better checking for json obj