Add tests for peer and remote_ip fields.