Fix download_url method for not provided domain and added tests

Sorry ze sem to zmrcasil takhle :)