#include <bits/stdc++.h>
const long long N = 2 * 1e2 + 9;
using namespace std;
long long t, n, m;
bool a[N][N];
int main() {
  cin >> t;
  while (t--) {
    cin >> n >> m;
    long long b[N] = {}, c[N] = {};
    long long ans1 = n, ans2 = m;
    for (int i = 0; i < n; ++i) {
      for (int j = 0; j < m; ++j) {
        cin >> a[i][j];
        if (a[i][j]) {
          if (b[i] == 0) {
            ans1--;
            b[i]++;
          }
          if (c[j] == 0) {
            ans2--;
            c[j]++;
          }
        }
      }
    }
    long long ans = min(ans1, ans2);
    string answer = (ans % 2 == 0) ? "Vivek" : "Ashish";
    cout << answer << endl;
  }
}
