Adding test for protocol relative url.
Minor Refactor to allow easier testing of asset_pathname.