fix unit test to not require actual CertificateDirectory