Added tests for `get-peer-info`
Added test for `get-mining-info` and corrected function
Fixed `get-peer-info` function and fixture