Adding unit test & bug fixes for BouncyCastleEncryptionBridge