Test suite: fix wait_vanish()