Add setApiUrl in a test