Add tests for Crypt

Signed-off-by: Kenji Suzuki <kenji.uui@gmail.com>