Creating and testing a test client