certificate key generation tests