CAP-1151 Add dateToString aggregation tests