Test terms aggs fail with expressions