[TEST] fix PhraseInIndex test bug for shard failure