Unittests for two more missing branches on aggregations