unit testing for Client class