Fixed tests in test_search.py.