Added tests around aggregates.