LPS-32907 More integrations tests for search (and fix the issues found with the tests)