simplify logic to detect Persimmon tests