Added test for issue 4945
Merge pull request #7536 from hargup/test_4945

Added test for issue 4945