Added test for certificate