Added test case for bug #1