Fix unit test for new "no internet" behaviour

[#54290822]
Merge 54290822-improve-internet-detection to master

[#54290822]