Add unit tests for IP entities.

Signed-off-by: Max Fierke <max@maxfierke.com>