#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n, m;
    cin >> n >> m;
    vector<vector<int> > v(n, vector<int>(m));
    for (int i = 0; i < n; i++) {
      for (int j = 0; j < m; j++) {
        cin >> v[i][j];
      }
    }
    int i, j = 0, c = 0, f;
    for (i = 0; i < n; i++) {
      f = 0;
      if (j >= m) break;
      if (v[i][j] == 1) {
        j++;
        continue;
      } else {
        for (int p = 0; p < n; p++) {
          if (v[p][j] == 1) {
            f = 1;
            j++;
            i--;
            break;
          }
        }
        if (f == 0)
          for (int p = 0; p < m; p++) {
            if (v[i][p] == 1) {
              f = 1;
              break;
            }
          }
      }
      if (f == 0) {
        v[i][j] = 1;
        c += 1;
        j++;
      }
    }
    if (c % 2 == 1) {
      cout << "Ashish" << endl;
    } else
      cout << "Vivek" << endl;
    v.clear();
  }
}
