[addrman] add tests for IsTerrible
Summary: The review of D15095 revealed that this function is not tested. Add tests to catch potential mistakes when that function is touched.
Test Plan: ninja check
Reviewers: #bitcoin_abc, Fabien
Reviewed By: #bitcoin_abc, Fabien
Differential Revision: https://reviews.bitcoinabc.org/D15109