simplify gpg module test to be more readable