Add testMax to query test :smile: