Make rm tests resilient to eventual listing consistency.