Bug 998057: Add tests for certificate pinning (r=cviecco,dkeeler)