Test the undo action with new deletecommand