implemented tests for aggregator.