Lps 51124 Improve LuceneHelperImplTest

Hi Shuyang, 

Somehow there is still error on CI server, to make things clear, I used advice to separate the logic to be tested.

I will send Brian PR to ee-6.2.x after this is merged.

Tina.