Cipher2 and test class implemented