Add reduced test-cases for issues 4875 and 4881
Merge pull request #5129 from Snuffleupagus/issues-4875-4881-tests

Add reduced test-cases for issues 4875 and 4881