peermanager change
fixing test cases