added test to ensure prependHostToUrl method uses the correct scheme