ADD: unit test for in_degree compute function