api client - working version; restructualization of tests
api client - working version