[PATCH v2 3/3] unit: More test coverage for TLS chain validation