ipaddr: add test for prefix comparison