fdo#84043: add a test for the bug

Change-Id: Ic9ad86bfc2d4d6b02afe99a34ded27fe94f54fab