separate test for grid.c