Added simple function codegen test case