issue 587 fix

I have disabled connecting to node running on localhost for tests.

Please comment on `PeerGroupTest.preferLocalPeer` if my solution makes sense.