Wrote tests for lucene index recovery to ensure duplicates don't occur. This also includes fixes to the lifecycles of Directory and IndexReader instances from lucene.