Add tests for copying and moving files with visibility specifier