fix tests to use promise-based searches