[test helper] Correct only_matching test gathering