added Facet.hierarchy method + test
added Facet.hierarchy method + test