This method and `setupSearch` have some common functionality that can be abstracted into a single method. Do you think we can use that on the setup for other tests?