Add test case for issue 7049.