add element with multiple declarations test case