Added support for uploading from URL and updated tests