Add more codegen tests, primarily for optional arguments.