#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int t, n, m, a, b;
  cin >> t;
  while (t--) {
    int row[100] = {0}, colum[100] = {0};
    cin >> n >> m;
    int r = 0, c = 0;
    for (int i = 0; i < n; i++) {
      int k = 0;
      for (int j = 0; j < m; j++) {
        cin >> a;
        if (a == 1) {
          colum[j] = 1;
          k = 1;
        }
      }
      if (k == 1) row[i] = 1;
    }
    for (int i = 0; i < n; i++)
      if (row[i] == 0) r++;
    for (int i = 0; i < m; i++)
      if (colum[i] == 0) c++;
    b = std::min(r, c);
    if (b % 2 == 0)
      cout << "Vivek" << endl;
    else
      cout << "Ashish" << endl;
  }
  return 0;
}
