added test for code generator class functions
fixed structure for fields parameters