Added test that spans 3 levels of entity type hierarchy, just to be sure.