add: testing codes for peermanager