procedures and tests for advanced search with folder id