Solve Debian Bug#764868: with environment NO_NETWORK_TESTING set no external tests will be done.
Simplify checks for fork by putting it into testlib and fix it by including Config.