EQUAL case handled as AND of terms instead of OR, test
codebase used to migrate to java8 the production system