fdo#81309: Write test for this.

Change-Id: I98216a60b3b82bdac14cd777b85502dc09f82dd9