test_check_infrastructure: improve test coverage to include HTTP failures.

Signed-off-by: Daira Hopwood <daira@leastauthority.com>