Allow network related tests to be skipped if no network is available. Fixes #6710.
Merge pull request #6737 from s0undt3ch/hotfix/6710-skip-network-tests

Allow network related tests to be skipped if no network is available