Add unit test for copy_files