Add test case for issue 13478.

The issue was a 2.066 regression that has been fixed differently
on master in the meantime. This adds the test case from the
2.066 branch commit 972c90f.