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 []