finish adding and testing ingroup metadata for trees