Added tests for client.