error check before insert/patch && test_data.json update