Added more robust test for searches.