Implement client with client generator and test it