edit partially recovered and added in test cases for edit