For ENG-5959, fix test bugs for latency stats