add: testing codes for connect_peer