Fix nose tests to work with updated gnupg API