moved few tests for searchResult function to showResult function