added tests for get_grid