Some minor updates in test_build_grid.m