add test for setFields