Add unit tests for most functionality in the pki_utility module. Change-Id: Icc2430067f1eb84bc9a83cb95aa207b7a7b423c8