#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  int tt;
  cin >> tt;
  while (tt--) {
    int n, m;
    cin >> n >> m;
    vector<vector<int>> a(n, vector<int>(m));
    vector<bool> row(n), col(m);
    for (int i = 0; i < n; i++) {
      for (int j = 0; j < m; j++) {
        cin >> a[i][j];
        if (a[i][j]) {
          row[i] = true;
          col[j] = true;
        }
      }
    }
    int cnt = min(count(row.begin(), row.end(), false),
                  count(col.begin(), col.end(), false));
    cout << (cnt % 2 == 0 ? "Vivek" : "Ashish") << '\n';
  }
  return 0;
}
