#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long t;
  cin >> t;
  while (t--) {
    long long n, m, ans, count = 0, res;
    cin >> n >> m;
    set<long long> r, c;
    long long arr[n][m];
    for (long long i = 0; i < n; i++) {
      for (long long j = 0; j < m; j++) {
        cin >> arr[i][j];
      }
    }
    for (long long i = 0; i < n; i++) {
      for (long long j = 0; j < m; j++) {
        if (arr[i][j] == 1) {
          r.insert(i);
          c.insert(j);
        }
      }
    }
    ans = min(n - r.size(), m - c.size());
    if (ans % 2 != 0)
      cout << "Ashish" << endl;
    else
      cout << "Vivek" << endl;
  }
  return 0;
}
