test with index and searching