mock a client object with config