Fix the gpg-key file method tests