tests for Client class