solution for SearchTest#matchAllSearch