test showSearchResult function