Checking the search alg