Add protocol detection
Change test case for valid URL