Tests and fixes for create_archive_index
Tests and fixes for create indexes