first impl of search_history and test
search wip