[qa] TestNode: Add wait_until_stopped helper method