Add unit tests for family inet

Change-Id: I26d83bd40d89c4658910f1e463fa9bea148dfcb7