added test for issue #615
fixes #615
Adding file.setPermissions method.

* Specify targetfile, {options} or targetfile, sourcefile.
* file.copy should now copy user, group, permissions by default, which can be disabled by setting the "preservePermissions" option to false.
Removed mode checks before permission testing.