Tests undo method of CommandDo