New x509 tests

Add a couple x509 tests that where missing, we should have all cases covered now.