added testcase for ticket 1670