Fixing searching tests