This test can be split into two things: 1) Unit test that invalid hostnames cause `_clean_next_url` to return `None`, and 2) the integration test that proves the flow works. (1) is testing `_clean_next_url` itself, and (2) is testing that it's being used correctly.