Add a reduced test-case for issue 4800
Merge pull request #5103 from Snuffleupagus/issue-4800-test

Add a reduced test-case for issue 4800