New tests for x509

Verify that some expected behavior is correct