Fixing search tests