Task 54279: Backport network new-style tests

Checked out tests/ at aed63c8 (initial port + doc) and backported to 3.6.1