Add more unit tests for TrustManagerFactory