Added tests for all network error handling