Client class + unit tests.