[JENKINS-9741] Added a test to verify file permission handling.

Copyartifact should handles file permissions.
That is, [JENKINS-9741] (https://issues.jenkins-ci.org/browse/JENKINS-9741) is already fixed.