test509: libcurl initialization with memory callbacks and actual usage