Add successful edit test,improve update action