allow tests to be run without a network

Closes #6722