[unittests] Safeguard searchengine test case for dirty setup