Added curl utility method to tests