Lucene test case fixes.