unit tests for encryption: added check if mcrypt extension was loaded, to make tests compatible with 3rdparty services linke drone.io or travis.ci