In the case of the headers messageThe headers message has a size limit, determined by the number of headers, there is a message size limit related to the number of headers that kicks in about one order of magnitude below the message sizes being tested here (80 bytes * 2000 headers =160000 bytes) .which is triggered at approximately 160,000 bytes (80 bytes × 2,000 headers), When inspecting the log,about one order of magnitude below the tested message sizes. you can see that the followLogs show the node rejecting lines are being loggedthese messages, showing that the node actually rejectsas indicated by these message sizes: following lines:
```
Misbehaving: peer=0 (0 -> 20): too-many-headers: headers message size = 2097146
Misbehaving: peer=0 (0 -> 20): too-many-headers: headers message size = 1999996
Misbehaving: peer=0 (0 -> 20): too-many-headers: headers message size = 999996
```
So contrary to the intent of the test, the tested network messages are no in fact "not_oversized_msg".
In a future diff the misbehavior score increment will be bumped from 20 to 100, and the peer will actually be disconnected, which would cause the removed tests to fail on `conn.send_and_ping`.
See D16343 for why these tests where added.
Depends on D18025