test workaround_classgen_bug