add unit-test for get_client API