removed unused setMetaData() method on internal aggregations, removed unused imports in tests