Add function for skipping tests for certain versions
Apply version restrictions to aggregations tests