Brain: Adding test to cover the aggregates view