#include <bits/stdc++.h>
using namespace std;
int a[52][52];
int main() {
  int t, l, n, m, i, j, x, k1, k2, ok;
  cin >> t;
  for (l = 1; l <= t; l++) {
    cin >> n >> m;
    for (i = 1; i <= n; i++)
      for (j = 1; j <= m; j++) cin >> a[i][j];
    k1 = 0;
    k2 = 0;
    for (i = 1; i <= n; i++) {
      ok = 1;
      for (j = 1; j <= m; j++)
        if (a[i][j] != 0) {
          ok = 0;
          break;
        }
      if (ok == 1) k1++;
    }
    for (j = 1; j <= m; j++) {
      ok = 1;
      for (i = 1; i <= n; i++)
        if (a[i][j] != 0) {
          ok = 0;
          break;
        }
      if (ok == 1) k2++;
    }
    x = min(k1, k2);
    if (x % 2 == 1)
      cout << "Ashish";
    else
      cout << "Vivek";
    cout << '\n';
  }
  return 0;
}
