added test for modify-via-api