I'd suggest moving this up and wrapping both `test_aggregation_cursor` and `test_aggregation_cursor_invalid_ops` with this version check. Since there's nothing to run for < 2.5.1 lets skip even defining them.