#include <bits/stdc++.h>
using namespace std;
const int N = 100;
int n, m;
int g[N][N], v1[N], v2[N];
int main() {
  int T;
  cin >> T;
  while (T--) {
    cin >> n >> m;
    memset(v1, 0, sizeof(v1));
    memset(v2, 0, sizeof(v2));
    int cnt = 0;
    for (int i = 1; i <= n; i++) {
      for (int j = 1; j <= m; j++) {
        int x;
        scanf("%d", &x);
        if (x == 1) v1[i] = 1, v2[j] = 1;
        g[i][j] = x;
      }
    }
    for (int i = 1; i <= n; i++) {
      for (int j = 1; j <= m; j++) {
        if (g[i][j] == 0 && !v1[i] && !v2[j]) cnt++, v1[i] = v2[j] = 1;
      }
    }
    if (cnt & 1) {
      cout << "Ashish" << endl;
    } else
      cout << "Vivek" << endl;
  }
}
