fix AMD generator test: define() shim was incomplete.