Better coverage of json validation