Added undo test cases for add and edit