test the total_index_size_per_collection function