Is the lookup by `index_name` tested? If not can we add a test for it?