Clean up addrman_tests.cpp
Summary: Backport from core PR 10371
Test Plan:
./src/test/test_bitcoin -t addrman_tests
Reviewers: #bitcoin_abc, deadalnix
Reviewed By: #bitcoin_abc, deadalnix
Subscribers: deadalnix, teamcity
Differential Revision: https://reviews.bitcoinabc.org/D1955