started document writer test
refactored to field_type