Test for edit event.