Nested containment tests