NXP-8868: write non-regression tests for fulltext special chars handling

Early pull request to discuss how to best test and fix this issue.

https://jira.nuxeo.com/browse/NXP-8868