added test for update and edit action