Fixed a failing assertion when both a url template and url are specified