fdo#80410: let's add a unit test too...

Change-Id: I2b9853dc5b85c034d767825ca2842738b61b54f5