Throw an error when the URL is not valid
Add test