Added security police for pinned certificates and also added tests