#include <bits/stdc++.h>
using namespace std;
int a[55][55], b[55][55];
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n, m;
    cin >> n >> m;
    for (int i = 0; i < n; i++)
      for (int j = 0; j < m; j++) cin >> a[i][j], b[i][j] = 0;
    for (int i = 0; i < n; i++)
      for (int j = 0; j < m; j++) {
        if (a[i][j] == 1) {
          for (int k = 0; k < m; k++) b[i][k] = 1;
          for (int k = 0; k < n; k++) b[k][j] = 1;
        }
      }
    int ans = 0, temp;
    while (true) {
      temp = ans;
      for (int i = 0; i < n; i++) {
        for (int j = 0; j < m; j++) {
          if (b[i][j] == 0) {
            ans++;
            for (int k = 0; k < m; k++) b[i][k] = 1;
            for (int k = 0; k < n; k++) b[k][j] = 1;
          }
        }
      }
      if (ans == temp) break;
    }
    if (ans % 2)
      cout << "Ashish" << endl;
    else
      cout << "Vivek" << endl;
  }
}
