Clean the code in field.rs
and add more tests
#2345
Merged
field.rs
and add more tests
#2345