#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    long long n, m, i, j;
    map<long long, long long> mpr, mpc;
    bool turn = true;
    cin >> n >> m;
    int a[n][m];
    for (i = 0; i < n; i++) {
      for (j = 0; j < m; j++) {
        cin >> a[i][j];
        if (a[i][j] == 1) {
          mpr[i] = 1;
          mpc[j] = 1;
        }
      }
    }
    for (i = 0; i < n; i++)
      for (j = 0; j < m; j++) {
        if (a[i][j] == 0 && mpr[i] == 0 && mpc[j] == 0) {
          if (turn)
            turn = false;
          else
            turn = true;
          mpr[i] = 1;
          mpc[j] = 1;
        }
      }
    if (turn)
      cout << "Vivek";
    else
      cout << "Ashish";
    cout << "\n";
  }
  return 0;
}
