Checking if protocol contains http before creating tests that requires that