Add test for lucene query builder.