procedures and tests for advanced search