add test case with 5x7 grid