Add global context variable tests