Added tests for Crypto module