repaired encryption test and corrected behavior with single chunk of samples per file