LatencyTest now accepts samples number as third argument