You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: certs_test.go
    path of file: ./repos/hoverfly/core/certs
    
    the code of the file until where you have to start completion: package certs_test

import (
	"crypto/x509"
	"os"
	"reflect"
	"testing"
	"time"

	"github.com/SpectoLabs/hoverfly/core/certs"
)

func TestNewCert(t *testing.T) {
	x509c, _, err := certs.NewCertificatePair("certy.com", "cert authority", 365*24*time.Hour)
	if err != nil {
		t.Errorf("Failed to generate certificate and key pair, got error: %s", err.Error())
	}

	if err := x509c.VerifyHostname("certy.com"); err != nil {
		t.Errorf("x509c.VerifyHostname(%q): got %v, want no error", "certy.com", err)
	}

	if got, want := x509c.Subject.Organization, []string{"cert authority"}; !reflect.DeepEqual(got, want) {
		t.Errorf("x509c.Subject.Organization: got %v, want %v", got, want)
	}

	if got := x509c.SubjectKeyId; go
    
func TestTlsCert(t *testing.T) {
	pub, priv, err := certs.NewCertificatePair("certy.com", "cert authority", 365*24*time.Hour)
	if err != nil {
		t.Errorf("Failed to generate certificate and key pair, got error: %s", err.Error())
	}
	tlsc, err := certs.GetTLSCertificate(pub, priv, "hoverfly.proxy", 365*24*time.Hour)
	if err != nil {
		t.Errorf("Failed to get tls cert, got error: %s", err.Error())
	}

	x509c := tlsc.Leaf
	if x509c == nil {
		t.Fatal("x509c: got nil, want *x509.Certificate")
	}
	if got := x509c.SerialNumber; got.Cmp(certs.MaxSerialNumber) >= 0 {
		t.Errorf("x509c.SerialNumber: got %v, want <= MaxSerialNumber", got)
	}
	if got, want := x509c.Subject.CommonName, "hoverfly.proxy"; got != want {
		t.Errorf("X509c.Subject.CommonName: got %q, want %q", got, want)
	}
	if err := x509c.VerifyHostname("hoverfly.proxy"); err != nil {
		t.Errorf("x509c.VerifyHostname(%q): got %v, want no error", "certy.com", err)
	}

}