add 2 tests for aggregate()