ISPN-2833 Add new tests for testing Lucene v3 & v4 as well increasing code coverage.

Fixed remarks from Galder.
The failing tests are fixed.