Fix the test of search on multiple index