<s>[INST] Here is the code for a 2D bounded grid.
```cpp
#include <iostream>
#include <vector>

using namespace std;

struct Cell {
    int x, y;
    int value;
    bool visited;
};

class Grid {
private:
    vector<vector<Cell>> cells;
    int num_rows;
    int num_cols;

public:
    Grid(int rows, int cols) : num_rows(rows), num_cols(cols) {
        cells.resize(num_rows, vector<Cell>(num_cols));
        for (int i = 0; i < num_rows; i++) {
            for (int j = 0; j < num_cols; j++) {
                cells[i][j].x = j;
                cells[i][j].y = i;
                cells[i][j].value = 0;
                cells[i][j].visited = false;
            }
        }
    }
};
```
I want to be able to test every single cell without worrying about ever going out of bounds. How would you make the test method for that?[/INST]