Making sure the index files works properly