test to index