Fixes on GetUrl task and added unit tests