Add test for issue 4503, closes #4503
Merge pull request #7503 from skirpichev/4503-test

Add test for issue 4503, closes #4503