Add regular_grid test code