Code formatting and introduction of latency in the test client