testing interface of collector for hierarchy