Bug fixes & new tests for Lucene Directory v3 & v4