Add tests for get_default_v4_gateway

Change-Id: I5366a773833f2f1029b4936e1cbfe294767c77f3