fdo#80955 - add a unit test.

Change-Id: Ie79a86827c4ee9feabcabf2530b30466f95905ed