Add code to test reading the index