Test certificate verification