add unittest for ApiClient.

api client is now suspendable.