Working test with required, repeated, optional fields and enums