Added aggregation tests for max, min and cardinality aggregations