a URL fetcher to fetch contents of a URL + tests