Add test case for detecting overlaps when one task is writing to a symlink that is an output dir of another.

+review REVIEW-5293