added codegen test