[test] adding test for setting field