Lucene new tests

Mostly @andyuk1986 's changes, I added some additional commits.