TST: increase test coverage in neighbors module