added a test case for chained elements