Fix tests for search.