Add support for GPG 1.x in test cases.
Run tests as part of build.