fixing bug in api call and tests
tests for .api_call