Added OpenPGP unit tests and began fixing issues