Add test for aggregate.