add test case with 3x3 grid