#include <bits/stdc++.h>
using namespace std;
const double eps = 1e-8;
inline int sgn(const double &x) { return x < -eps ? -1 : x > eps; }
const long long inf = 0x3f3f3f3f;
const int N = 1e3 + 5;
template <class T>
inline void cmin(T &a, T b) {
  ((a > b) && (a = b));
}
template <class T>
inline void cmax(T &a, T b) {
  ((a < b) && (a = b));
}
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n, m, flag = 0;
    cin >> n >> m;
    int a[50][50] = {0};
    int x[50] = {0}, y[50] = {0};
    for (int i = 0; i < n; i++)
      for (int j = 0; j < m; j++) {
        cin >> a[i][j];
        if (a[i][j] == 1) x[i]++, y[j]++;
      }
    for (int i = 0; i < n; i++)
      for (int j = 0; j < m; j++)
        if (x[i] == 0 && y[j] == 0) {
          flag++;
          x[i]++;
          y[j]++;
        }
    if (flag % 2 == 0)
      cout << "Vivek" << '\n';
    else
      cout << "Ashish" << '\n';
  }
  return 0;
}
