Fixing bug in latency test.