added tests for load_index and fixed it so it passes