@Ignore("Seems like there are some from this class as well...")
  @Test
  public void checkMissingQOut() {
    SetView<File> missing = Sets.difference(outsNeeded.keySet(), outsFound);
    System.out.println(missing);
    assertTrue(missing.isEmpty());
  }
This test ensures that there are no dangling q.out files in the project

It has a cli functionlity to remove them if there are any.
itests/util/src/test/java/org/apache/hadoop/hive/cli/control/TestDanglingQOuts.java