adding isEncrypted function
removing tests