* fix: slice error for index out of bounds this commit fixes slicing `notConnectedPeers` array with 0 to a negative value of `numPeersToConnect` by first checking if `numPeersToConnect` are greater than 0
* refactor: peerManager test * fix: break down and fix peerManager test * refactor: codeClimate linting for peerManager/ConnectionGater