Add testAvg to query test.