Tested the doSearch method.