Corrected tests-path-related logic