Fixed the index file and adding in a test to confirm that it is working properly.