Fix generated global in test