Test domain works
It is possible to write a domain that does not work (like unknown field or invalid clause etc.).
I think we should run a search query to validate otherwise the search_count fails and catch exception when using domain in case it is not valid.