Alter test to modify and check encrypted file