Cleaned up gpg-key tests. added a read function to gpg-key record