ipaddr: add test for Bits method