Hardening $.Url, added unit tests