Add unit tests for message deserializers

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