added functional test to TermsAggregation with zero min_doc_count