deleting old tests and adding Connection variable
adding setEncryption
testing Connection functions
fixing encryption bug