Update tests so that no tests require the network

This fixes #1286