Test stream ends on network error.