gpgkey tests from test_key_associate_[10-20]
updated exception for else part
replacing '' with None
Merge pull request #551 from sghai/assoc-gpg-tests

gpgkey tests from test_key_associate_[10-20]