enhance unit-test for cidr class