Added testcase for bug