Testcase for ticket #716