CSP: In tests, use setMwGlobals() instead of manual set+undo