testing global variables and async