Fix test to work without preconfigured globals