iprep: add unit tests for cidr

Implements unit tests to test the new API