encryptAndSign test appears to work