fdo#74323: Test the undo and redo as well.

Change-Id: I5ed921290fc3f98ecd268b606c0f7ccbf9016c39