#include <bits/stdc++.h>
using namespace std;
bool checkR(int row, int** input, int n, int m) {
  for (int i = 0; i < m; i++) {
    if (input[row][i] == 1) {
      return false;
    }
  }
  return true;
}
bool checkC(int col, int** input, int n, int m) {
  for (int i = 0; i < n; i++) {
    if (input[i][col] == 1) {
      return false;
    }
  }
  return true;
}
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n, m;
    cin >> n >> m;
    int** input = new int*[n];
    for (int i = 0; i < n; i++) {
      input[i] = new int[m];
      for (int j = 0; j < m; j++) {
        cin >> input[i][j];
      }
    }
    bool flag = true;
    for (int i = 0; i < n; i++) {
      for (int j = 0; j < m; j++) {
        if (input[i][j] == 0 && checkR(i, input, n, m) &&
            checkC(j, input, n, m)) {
          input[i][j] = 1;
          flag = !flag;
          j = m;
        }
      }
    }
    if (flag) {
      cout << "Vivek" << endl;
    } else {
      cout << "Ashish" << endl;
    }
  }
  return 0;
}
