While in IBD, outbound peers (full-relay and block-relay-only) whose headers chain has less work than nMinimumChainWork are disconnected. This behavior was not covered by any test, since the functional tests only connect nodes to each other via manual connections, and the default minimum chain work is zero.
This adds a test case that restarts node2 with a higher -minimumchainwork and check that both outbound-full-relay and block-relay-only peers serving headers below it are disconnected, while inbound and manual peers are not.