added missing scenario: when discoverable does not exist
added error scenarios for when url isn't http or https