Improve testing for absolute URLs

I suggest the change here; it covers all URL schemes better, including "view-source" and "web+example".