test if index is an Lucene RAMDirectory instance