Refactoring of unittests for field and fieldgroups