Add unit tests for message serializers & deserializers

* Adds unit tests for verifying the pgp encryption and decryption.
* Adds unit tests for vierifying message serialization and deserialization.

Ping @mikaellothman