#include <bits/stdc++.h>
using namespace std;
template <typename H>
void read(H& head) {
  cin >> head;
}
int main() {
  int t;
  cin >> t;
  while (t > 0) {
    int n, m;
    cin >> n >> m;
    vector<vector<int>> board(n, vector<int>(m, 0));
    set<int> rows, columns;
    for (int i = 0; i < (n); ++i) {
      for (int j = 0; j < (m); ++j) {
        int temp;
        read(temp);
        board[i][j] = temp;
        if (board[i][j]) {
          rows.insert(i), columns.insert(j);
        }
      }
    }
    int max_moves = min(n - rows.size(), m - columns.size());
    if (max_moves % 2)
      cout << "Ashish";
    else
      cout << "Vivek";
    cout << endl;
    t--;
  }
}
