Add test for pr14567.

Closes PR 14567.
It seems that this has been already fixed.