fixes to search by term
test stub for trying to replicate neo4j bug