removing global variables in test