Add test case for PR 11747.

Closes PR 11747. This was fixed at some point.