Moved the setSalt outside the loop in testEncryptDecrypt