registerCmd enc, dec test