added testcase for ticket 2172