using fields to set field_size keys and writing tests