Fix download_url method for not provided domain and added tests