Add a tiny test for the generate-keystone-pki CLI

Also check that the generate-keystone-pki CLI calls its two
functions correctly with a two new tests.

Change-Id: Iabf4e23cbf42255171ae12aa4ea0b12cf66a357f
Merge "Add a tiny test for the generate-keystone-pki CLI"