[TEST] Agg may not be a instance of StringTerms, but UnmappedTerms, so use common Terms class instead