Added test_detection_network_error test
Unittests for now.