Add some tests for get_addr/format_addr

IPv4 only for now for compatibility with old machines