Building the test client