Basic cURL functionality. Added test for factories.