Test the case where the generated code uses a type defined in the source package (in source mode). There are two test cases: