Test was broken with change to fix the NilClass issue. Its possible that doing URI.parse(config.url).host may be nil so we need to check against config.url in that case