Add test case for issue 7049.
Merge pull request #2484 from quickfur/test7049

Add test case for issue 7049.