Fix static checker warnings in AggregatesSpecification.groovy
#1564
+8
−5
AggregatesSpecification.groovy
#1564