test fix: slow VM could fail to wait long enough