testCipher fixes