adding testing for detecting path in PATH