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.
Merge pull request #3996 from klickverbot/issue-13478-tests

Add test case for issue 13478.