#include <bits/stdc++.h>
using namespace std;
long long n, m, t, el;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cin >> t;
  while (t--) {
    cin >> n >> m;
    long long lin[n + 1], col[m + 1];
    for (int i = 1; i <= n; ++i) {
      lin[i] = 0;
      for (int j = 1; j <= m; ++j) {
        if (i == 1) col[j] = 0;
        cin >> el;
        if (el == 1) lin[i] = col[j] = 1;
      }
    }
    long long nr1 = 0, nr2 = 0;
    for (int i = 1; i <= n; ++i)
      if (!lin[i]) ++nr1;
    for (int j = 1; j <= m; ++j)
      if (!col[j]) ++nr2;
    if (min(nr1, nr2) % 2 == 0)
      cout << "Vivek\n";
    else
      cout << "Ashish\n";
  }
  return 0;
}
