This patch fixes two unit test errors. One is "ipv6_address_mode not
found", the other is "has no attribute type_manager". The first error
is addressed by the previous patch but cannot be merged due to the
second error, so this patch address these two errors at the same time.