test: add test for issue #4585

This issue has been fixed by #6123

closes #4585
1 file changed