Date range aggregation test for the REST client