Added switch for uploading attachments with curl (@ vs. CURLFile)
Added more tests.