reset globals in test