improved tests. Must code sorting of search results.