Add unit tests for family inet

Change-Id: I1dda195c0e0a58b2cd3d0669c6ea2b919692ff6a