test(json): make assertions more robust

related to CAM-2457