Add tests for edit and update actions.