Unit tests for CertUtils