test: handle special case in TestUtils.waitExits()