add test for indexing