add test for fields.go