Add tests for peer and remote_ip fields.
Merge pull request #80 from MSch/peer-tests

Add tests for peer and remote_ip fields.