add: testing codes for peermanager.stop