test adding an index file