Merge pull request #4952 from apache/enhance-index-health-check

improve test assertion