Add test for file existence
dependency, coding style of copying, order of changing encoding, delete unnecessary line in the message, and added test