#include <bits/stdc++.h>
using namespace std;
int a, n, m, i, j, k, o, b;
int mat[100][100];
int cl[100], ln[100];
int main() {
  cin >> a;
  for (b = 0; b < a; b++) {
    cin >> n >> m;
    for (i = 0; i < n; i++) ln[i] = 0;
    for (i = 0; i < m; i++) cl[i] = 0;
    for (i = 0; i < n; i++)
      for (j = 0; j < m; j++) {
        cin >> mat[i][j];
        if (mat[i][j] == 1) {
          ln[i]++;
          cl[j]++;
        }
      }
    j = 0;
    k = 0;
    for (i = 0; i < n; i++)
      if (ln[i] != 0) j++;
    for (i = 0; i < m; i++)
      if (cl[i] != 0) k++;
    if (min(n - j, m - k) % 2 == 0)
      cout << "Vivek" << endl;
    else
      cout << "Ashish" << endl;
  }
  return 0;
}
