Added comment on ad tests; Moved to mockGlobalVar