fdo#81445: Write test for this.

Change-Id: I7d94e780b12a947a2861f82f1b8a3c14b5489ac2