Add integration tests for the index operation