Add deck datatype and add additional test cases for crypto.