tests for simple class code generator cases