added test for issue 6157
Merge pull request #7690 from hargup/issue6157_test

Test for issue 6157