move base api logic to base client, stub out methods to be overriden
Fix mocking of API error tests