refactor SearchQuery
add tests for SearchQuery
add tests for logging via Log::Any