add test for generateNeighbor2D