Add test case for bug #2