test distinct rows e.g. for testing for network loops

test_distinct(data, ids)