fixing global in tests