[PATCH 5/9] unit: Validate the peer_identity in test-tls