refactoring on profileConnectedPeersTest