Fixed a bug in test-crypto.py