added test for edit action