test for traversal with complex type