Crypto: add basic tests