test_check_infrastructure: improve test coverage WIP

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