Added tests
Added check for openssl versio > 1