test with latency