add testcase for ticket 3172