Update CryptLogic.py

Added test-functions.