Remove diagnostics from codegen tests