Add specs for copy_file
Add implementation for copy_file