add fieldwrite test