Implemented stateful tests for SSL certificates (#670)