Add regression test for bug 7068.
Merge pull request #3746 from Safety0ff/test7068

Add regression test for bug 7068.