#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n, m;
    cin >> n >> m;
    vector<vector<int>> grid;
    vector<int> row(m);
    int inp;
    for (int i = 0; i < n; i++) {
      row.clear();
      for (int j = 0; j < m; j++) {
        cin >> inp;
        row.push_back(inp);
      }
      grid.push_back(row);
    }
    vector<bool> rc(n, true);
    vector<bool> cc(m, true);
    for (int i = 0; i < n; i++) {
      for (int j = 0; j < m; j++) {
        if (grid[i][j] == 1) {
          rc[i] = false;
          cc[j] = false;
        }
      }
    }
    int ra = 0, ca = 0;
    for (int i = 0; i < n; i++)
      if (rc[i]) ra++;
    for (int i = 0; i < m; i++)
      if (cc[i]) ca++;
    int ans = min(ra, ca);
    if (ans % 2 == 0)
      cout << "Vivek\n";
    else
      cout << "Ashish\n";
  }
}
