Add some CURL API calls to tests