Issue #312: fix a test
Merge pull request #313 from pascalchevrel/cleanup-cache-after-tests

Issue #312: fix a test
Issue #307:
* fix sometimes missing source string in results for search/entity
* fix perfect_match search not catching entities with []
Merge pull request #314 from pascalchevrel/issue-307-fix-api-regressions

Issue #307: