ENG-6428: Add test for empty segment cleanup.