The public methods of `PeerManager` are largely untested. This may need to wait for ongoing refactoring.