add #return_all_results, #extract_existing_search_params with tests and fix some tests