testing x509 methods
fixing npe