Added a check for automated test cases such as test files or test directories.