testing code generation