Added a test for an edge case protocol relative url. Removed an if statement as it could never be reached.