Add complete working test encryption, but crashes on unsuccessful decrypt