Fix search populateSearchEngines() promise and test