test search.

help see the code whether if it is missing something or wrong