* refactor: peerManager test * fix: break down and fix peerManager test * refactor: codeClimate linting for peerManager/ConnectionGater