Add a test for PR 13490

The bug itself was already fixed by Eric Dobson