Working junit tests for pkix validation, both at the entity and entities level.