[test] Test that getnodeaddresses() can return all known addresses
[test] Test that getnodeaddresses() can return all known addresses

Summary:
This is a backport of [[https://github.com/bitcoin/bitcoin/pull/19658 | core#19658]] [2/3]
https://github.com/bitcoin/bitcoin/pull/19658/commits/ae8051bbd8377f2458ff1f167dc30c2d5f83e317

Depends on D10069

Test Plan: `ninja check-functional`

Reviewers: #bitcoin_abc, majcosta

Reviewed By: #bitcoin_abc, majcosta

Subscribers: majcosta

Differential Revision: https://reviews.bitcoinabc.org/D10070

Bitcoin-ABC/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,Bitcoin-ABC/bitcoin-abc