Adds new tests and fixes stub Curl getter in LeadsApiTest