make test pass for getNeighbors