RUBY-698 Only test regexes with aggregation if version > 2.3.2. SERVER-6470