api client test