almost finished with index integration tests