Mock call to GnuPG in test_command to avoid network communication.

- fix for issue #570
- added mock as dependency
Merge pull request #693 from codeburg/issue_570_mock_gnupg_call

Mock call to GnuPG in test_command to avoid network communication.