Stability of networked nonlinear systems: Generalization of small-gain theorem and distributed testing. (June 2023)