The test node_init_tests/init_test calls:
AppInitMain() -> StartMapPort() -> StartThreadMapPort() -> ThreadMapPort() -> ProcessPCP() -> PCPRequestPortMap() -> CreateSock() and on the returned value from CreateSock() it calls the Connect() method.
Thus, change BasicTestingSetup::BasicTestingSetup() to set -natpmp to 0. This way node_init_tests/init_test or other tests will not do network activity due to ThreadMapPort().
Also add a comment about natpmp=0 in
test/functional/test_framework/util.py.
Also set -dnsseed=0 in BasicTestingSetup::BasicTestingSetup() to
avoid DNS queries.