Bug 892240 - Add tests for trimming and formatting of the URI r=jimm,sfoster

--HG--
extra : rebase_source : 4decf908068c2ca35514b87a619480327d50bb8e