Add testcase for Issue 1780