More Test Cases for edit function