t/helper: merge test-regex into test-tool