Validate value of GPG :key_id

The value of `:key_id` must be an hexadecimal string of length 8, 16,
or 40.
Update GPG tests to use valid key IDs
Test for invalid GPG key IDs