setq to defvar in tests