#include <bits/stdc++.h>
using namespace std;
int main() {
  int tc, cs = 1;
  scanf("%lld", &tc);
  while (tc--) {
    long long n, m;
    string s = "Vivek";
    scanf("%lld %lld", &n, &m);
    long long r[n + 5], c[m + 5];
    long long a[n + 5][m + 5];
    memset(c, 0, sizeof(c));
    memset(r, 0, sizeof(r));
    for (int i = 1; i <= n; i++) {
      for (int j = 1; j <= m; j++) {
        cin >> a[i][j];
        if (a[i][j] == 1) {
          r[i] = 1;
          c[j] = 1;
        }
      }
    }
    for (int i = 1; i <= n; i++) {
      for (int j = 1; j <= m; j++) {
        if (a[i][j] == 0 && r[i] == 0 && c[j] == 0) {
          r[i] = 1;
          c[j] = 1;
          if (s == "Vivek")
            s = "Ashish";
          else
            s = "Vivek";
        }
      }
    }
    cout << s << endl;
  }
  return 0;
}
