update test use insert and update