Finish mocking curl functions to get 100% code coverage