Added testcase for the fix