add interface to LuceneIndexDirectoryFactory and its impl. in tests also. close #29