Adapted AggregationsTest to new groupBy output of RethinkDB 1.8