add tests for result aggregator