ssl certificate verification required and basic unit test of cert verification