Minor fix in class set field directive
Added one test