Regression test for issue 2842
Merge pull request #2918 from vyv03354/test2842

Regression test for issue 2842