Changed file path to be within the temp directory. Added a test for the correct encryption of the files