Address comments on ag/11204387.

Add comments and slightly increase test coverage.

Bug: 153694684
Test: new test coverage in IpClientIntegrationTest
Change-Id: I160a0801449cbe9e66976eaacdd3a914adc3d341
2 files changed