Add tests for crypto methods.