Testing of search functions