Ensure _global is defined in test scope