Making  a global var in tests
- fixes automated tests