fdo#73487: Write unit tests for this.

Also remove the files used for the old tests.

Change-Id: I4fbf6acce205d15a35780524120e351e01dc6642