Test average latency