beginning of Automated QA test for DomainAlias based search. Refactors.