api-tests fix api call that errored on jenkins & non local