moving connection creation into private method in UrlRequester; simplifying unit tests