ISPN-2789 - OutOfMemoryError in case if LuceneCacheLoader.loadAll() is called

  * The bug is fixed.
  * Tests are added for verifying the bug.
  * Many new tests are added testing lucene directory.