test for the tree() method
tree method returns container built from a flat list of related models
2.3.0